//
//  User.swift
//  goHomeSleep
//
//  Created by jiaxu on 16/6/27.
//  Copyright © 2016年 jiaxu. All rights reserved.
//

import Foundation
class UserModel {
    /*
        用户登录
        author:JiaXu
        date:2016/06/27
    */
    func UserLogin(userName: String, userPass: String) -> Void {
        let ReqSvc = RequestSvc();
        
        let data = [
            "username" : userName,
            "userpass" : userPass.md5()
        ];
        
        ReqSvc._request("UserInfo/login", reqData: data) { (resDic, resErr) in
            print(resDic)
        }
    }
}
